package com.edu.service;

import com.edu.dao.MoneyMapper;
import com.edu.pojo.Money;

import java.util.List;

public class MoneyServiceImpl implements  MoneyService{
    private MoneyMapper moneyMapper;
    public void setMoneyMapper(com.edu.dao.MoneyMapper moneyMapper) {
        this.moneyMapper = moneyMapper;
    }

    public int addOperation(Money money) {
        return moneyMapper.addOperation(money);
    }

    public List<Money> showAllOperation() {
        return  moneyMapper.showAllOperation();
    }

    public List<Money> showMyApplication(String memberNo) {
        return moneyMapper.showMyApplication(memberNo);
    }

    public int argeeApp(int id) {
        return moneyMapper.agreeApp(id);
    }

    public int disargeeApp(int id) {
        return moneyMapper.disagreeApp(id);
    }
}
